package com.chenyue.cm.user.domain;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.chenyue.cm.tool.orderStartEnum;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jaxen.function.ext.EvaluateFunction;

/**
 * <p>
 * 订单主表
 * </p>
 *
 * @author Lbx
 * @since 2024-02-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="JdOrderInfo对象", description="订单主表")
@TableName("jd_order_info")
public class JdOrderInfo extends Model<JdOrderInfo> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty(value = "订单编号")
    @TableField("order_no")
    private String orderNo;

    @ApiModelProperty(value = "用户ID")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty(value = "订单状态(0：未付款 1: 待发货 2 : 已发货 3：已完成 11：已取消）")
    @TableField("order_status")
    private Integer orderStatus;


    @ApiModelProperty(value = "商品件数")
    @TableField("goods_count")
    private Integer goodsCount;

    @ApiModelProperty(value = "单价")
    @TableField("unit_price")
    private Integer unitPrice;

    @ApiModelProperty(value = "订单金额")
    @TableField("order_money")
    private Integer orderMoney;

    @ApiModelProperty(value = "支付时间")
    @TableField("pay_time")
    private String payTime;

    @ApiModelProperty(value = "收货地址id")
    @TableField("address_id")
    private String addressId;

    @ApiModelProperty(value = "地址详情")
    @TableField("address_detail")
    private String addressDetail;

    @ApiModelProperty(value = "物流编号")
    @TableField("logistics_id")
    private String logisticsId;

    @ApiModelProperty(value = "物流公司")
    @TableField("logistics_fee")
    private String logisticsFee;

    @ApiModelProperty(value = "完成时间")
    @TableField("complete_time")
    private String completeTime;

    @ApiModelProperty(value = "发货时间")
    @TableField("delivery_time")
    private String deliveryTime;

    @ApiModelProperty(value = "下单时间")
    @TableField("create_time")
    private String createTime;

    @ApiModelProperty(value = "商品详情")
    @TableField("goods_detail")
    private String goodsDetail;

    @ApiModelProperty(value = "备注信息")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "商品ID")
    @TableField("spu_id")
    private String spuId;

    @ApiModelProperty(value = "规格ID")
    @TableField("sku_id")
    private String skuId;




    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
